import bg1 from '@/assets/img/background/bg1.jpg';
import bg2 from '@/assets/img/background/bg2.jpg';
import bg3 from '@/assets/img/background/bg3.jpg';
import bg4 from '@/assets/img/background/bg4.jpg';
import bg5 from '@/assets/img/background/bg5.jpg';
import bg6 from '@/assets/img/background/bg6.jpg';
import bg7 from '@/assets/img/background/bg7.jpg';
import bg8 from '@/assets/img/background/bg8.jpg';
import bg9 from '@/assets/img/background/bg9.jpg';
import bg10 from '@/assets/img/background/bg10.jpg';
import bg11 from '@/assets/img/background/bg11.jpg';
import bg12 from '@/assets/img/background/bg12.jpg';
import bg13 from '@/assets/img/background/bg13.jpg';
import bg14 from '@/assets/img/background/bg14.jpg';
import bg15 from '@/assets/img/background/bg15.jpg';
import bg16 from '@/assets/img/background/bg16.jpg';
import bg17 from '@/assets/img/background/bg17.jpg';
import bg18 from '@/assets/img/background/bg18.jpg';
import bg19 from '@/assets/img/background/bg19.jpg';
import bg20 from '@/assets/img/background/bg20.jpg';
import bg21 from '@/assets/img/background/bg21.jpg';
import bg22 from '@/assets/img/background/bg22.jpg';
import bg23 from '@/assets/img/background/bg23.jpg';
import bg24 from '@/assets/img/background/bg24.jpg';
import sbg1 from '@/assets/img/background/small/bg1.jpg';
import sbg2 from '@/assets/img/background/small/bg2.jpg';
import sbg3 from '@/assets/img/background/small/bg3.jpg';
import sbg4 from '@/assets/img/background/small/bg4.jpg';
import sbg5 from '@/assets/img/background/small/bg5.jpg';
import sbg6 from '@/assets/img/background/small/bg6.jpg';
import sbg7 from '@/assets/img/background/small/bg7.jpg';
import sbg8 from '@/assets/img/background/small/bg8.jpg';
import sbg9 from '@/assets/img/background/small/bg9.jpg';
import sbg10 from '@/assets/img/background/small/bg10.jpg';
import sbg11 from '@/assets/img/background/small/bg11.jpg';
import sbg12 from '@/assets/img/background/small/bg12.jpg';
import sbg13 from '@/assets/img/background/small/bg13.jpg';
import sbg14 from '@/assets/img/background/small/bg14.jpg';
import sbg15 from '@/assets/img/background/small/bg15.jpg';
import sbg16 from '@/assets/img/background/small/bg16.jpg';
import sbg17 from '@/assets/img/background/small/bg17.jpg';
import sbg18 from '@/assets/img/background/small/bg18.jpg';
import sbg19 from '@/assets/img/background/small/bg19.jpg';
import sbg20 from '@/assets/img/background/small/bg20.jpg';
import sbg21 from '@/assets/img/background/small/bg21.jpg';
import sbg22 from '@/assets/img/background/small/bg22.jpg';
import sbg23 from '@/assets/img/background/small/bg23.jpg';
import sbg24 from '@/assets/img/background/small/bg24.jpg';

export default {
  baseUrl: '/wos-server',
  debug: true,
  defaultErrorMessage: '请求服务器失败,请稍后再试',
  documents: [
    {
      extensions: ['.py', '.rpy', '.pyw', '.cpy', '.gyp', '.gypi'],
      id: 'python',
      name: 'Python',
    },
    {
      extensions: ['.toml'],
      id: 'toml',
      name: 'TOML',
    },
    {
      extensions: [
        '.json',
        '.bowerrc',
        '.jshintrc',
        '.jscsrc',
        '.eslintrc',
        '.babelrc',
        '.har',
      ],
      id: 'json',
      name: 'JSON',
    },
    {
      extensions: ['.txt'],
      id: 'plaintext',
      name: 'Plain Text',
    },
    {
      extensions: ['.ini', '.properties', '.gitconfig'],
      id: 'ini',
      name: 'ini',
    },
    {
      extensions: ['.js', '.es6', '.jsx', '.mjs', '.cjs'],
      id: 'javascript',
      name: 'JavaScript',
    },
  ],
  enableErrorReporter: false,
  filter: {
    video: [
      '.mp4',
      '.avi',
      '.mkv',
      '.wmv',
      '.flv',
      '.mov',
      '.rmvb',
      '.webm',
      '.m3u8',
    ], // 视频格式
  },
  httpStatusCode: {
    BAD_GATEWAY: 502,
    BAD_REQUEST: 400,
    FORBIDDEN: 403,
    FOUND: 302,
    GATEWAY_TIMEOUT: 504,
    INTERNAL_SERVER_ERROR: 500,
    METHOD_NOT_ALLOWED: 405,
    MOVED_PERMANENTLY: 301,
    NOT_FOUND: 404,
    NOT_MODIFIED: 304,
    OK: 200,
    SERVICE_UNAVAILABLE: 503,
    UNAUTHORIZED: 401,
  },
  monocaDefaultConfig: {
    acceptSuggestionOnCommitCharacter: true, // 接受关于提交字符的建议
    acceptSuggestionOnEnter: 'smart', // 接受输入建议 "on" | "off" | "smart"
    accessibilityPageSize: 10, // 辅助功能页面大小 Number 说明：控制编辑器中可由屏幕阅读器读出的行数。警告：这对大于默认值的数字具有性能含义。
    accessibilitySupport: 'on', // 辅助功能支持 控制编辑器是否应在为屏幕阅读器优化的模式下运行。
    autoClosingBrackets: 'always', // 是否自动添加结束括号(包括中括号) "always" | "languageDefined" | "beforeWhitespace" | "never"
    autoClosingDelete: 'always', // 是否自动删除结束括号(包括中括号) "always" | "never" | "auto"
    autoClosingOvertype: 'always', // 是否关闭改写 即使用insert模式时是覆盖后面的文字还是不覆盖后面的文字 "always" | "never" | "auto"
    autoClosingQuotes: 'always', // 是否自动添加结束的单引号 双引号 "always" | "languageDefined" | "beforeWhitespace" | "never"
    autoIndent: 'full',
    automaticLayout: true, // 自适应布局 自动布局
    autoSurround: 'never', // 是否应自动环绕选择
    codeLens: true, // 是否显示codeLens 通过 CodeLens，你可以在专注于工作的同时了解代码所发生的情况 – 而无需离开编辑器。 可以查找代码引用、代码更改、关联的 Bug、工作项、代码评审和单元测试。
    codeLensFontFamily: 'Consolas, "Courier New", monospace', // codeLens的字体样式
    codeLensFontSize: 13, // codeLens的字体大小
    colorDecorators: true, // 颜色装饰器 ，呈现内联色彩装饰器和颜色选择器
    columnSelection: false, // 启用列编辑 按下shift键位然后按↑↓键位可以实现列选择 然后实现列编辑
    comments: {
      ignoreEmptyLines: true, // 插入行注释时忽略空行。默认为真。
      insertSpace: true, // 在行注释标记之后和块注释标记内插入一个空格。默认为真。
    }, // 注释配置
    contextmenu: true, // 启用上下文菜单
    copyWithSyntaxHighlighting: true, // 是否应将语法突出显示复制到剪贴板中 即 当你复制到word中是否保持文字高亮颜色
    cursorBlinking: 'smooth', // 光标动画样式
    cursorSmoothCaretAnimation: 'on', // 是否启用光标平滑插入动画  当你在快速输入文字的时候 光标是直接平滑的移动还是直接"闪现"到当前文字所处位置
    cursorStyle: 'line', // "Block"|"BlockOutline"|"Line"|"LineThin"|"Underline"|"UnderlineThin" 光标样式
    cursorSurroundingLines: 0, // 光标环绕行数 当文字输入超过屏幕时 可以看见右侧滚动条中光标所处位置是在滚动条中间还是顶部还是底部 即光标环绕行数 环绕行数越大 光标在滚动条中位置越居中
    cursorSurroundingLinesStyle: 'all', // "default" | "all" 光标环绕样式
    cursorWidth: 2, // <=25 光标宽度
    folding: true, // 是否启用代码折叠
    foldingHighlight: true, // 是否启用折叠边框高亮
    fontFamily: 'Consolas, "Courier New", monospace', // 字体
    fontSize: 16, // 字体大小
    formatOnPaste: true,
    formatOnType: true,
    guides: {
      highlightActiveIndentation: true, // 是否高亮当前缩进
      indentation: true, // 是否显示缩进参考线
    },
    lineNumbers: 'on',
    lineNumbersMinChars: 4,
    LineNumbersType: 'on',
    links: true, // 是否点击链接
    minimap: {
      enabled: true, // 是否启用预览图
      scale: 1, // 预览图大小
    },
    overviewRulerBorder: false, // 不要滚动条的边框，是否应围绕概览标尺绘制边框
    renderLineHighlight: 'none', // 行亮
    roundedSelection: true, // 右侧不显示编辑器预览框
    scrollbar: {
      alwaysConsumeMouseWheel: false,
      arrowSize: 10,
      horizontalScrollbarSize: 10,
      verticalScrollbarSize: 10,
    },
    scrollBeyondLastLine: true, // 取消代码后面一大段空白，设置编辑器是否可以滚动到最后一行之后
    selectOnLineNumbers: true, // 显示行号
    theme: 'vs-dark', // 主题
  },
  requestMissingUrl: '请求缺少url，请检查！',
  setting: {
    background: [
      {
        label: 'Helios Light',
        large: bg1,
        name: 'bg1',
        src: sbg1,
      },
      {
        label: 'Helios Dark',
        large: bg2,
        name: 'bg2',
        src: sbg2,
      },
      {
        label: 'Sonoma',
        large: bg3,
        name: 'bg3',
        src: sbg3,
      },
      {
        label: 'Fluidic Stock',
        large: bg4,
        name: 'bg4',
        src: sbg4,
      },
      {
        label: 'Fluidic Dark',
        large: bg5,
        name: 'bg5',
        src: sbg5,
      },
      {
        label: 'Windows 11 Blue',
        large: bg6,
        name: 'bg6',
        src: sbg6,
      },
      {
        label: 'SurColorful Dark',
        large: bg7,
        name: 'bg7',
        src: sbg7,
      },
      {
        label: 'Microsoft Ignite',
        large: bg8,
        name: 'bg8',
        src: sbg8,
      },
      {
        label: 'Nebula Galaxy',
        large: bg9,
        name: 'bg9',
        src: sbg9,
      },
      {
        label: 'Galaxy Cosmic',
        large: bg10,
        name: 'bg10',
        src: sbg10,
      },
      {
        label: 'Background Blue',
        large: bg11,
        name: 'bg11',
        src: sbg11,
      },
      {
        label: 'Spiral Nebula',
        large: bg12,
        name: 'bg12',
        src: sbg12,
      },
      {
        label: 'Earth Sunrise',
        large: bg13,
        name: 'bg13',
        src: sbg13,
      },
      {
        label: 'Glass Abstract',
        large: bg14,
        name: 'bg14',
        src: sbg14,
      },
      {
        label: 'Colorful Abstract',
        large: bg15,
        name: 'bg15',
        src: sbg15,
      },
      {
        label: 'Blue Gradient',
        large: bg16,
        name: 'bg16',
        src: sbg16,
      },
      {
        label: 'Blue Abstract',
        large: bg17,
        name: 'bg17',
        src: sbg17,
      },
      {
        label: 'Abstract Stock',
        large: bg18,
        name: 'bg18',
        src: sbg18,
      },
      {
        label: 'Gamut Spectrum',
        large: bg19,
        name: 'bg19',
        src: sbg19,
      },
      {
        label: 'Windows XP',
        large: bg20,
        name: 'bg20',
        src: sbg20,
      },
      {
        label: 'Rainbow Colors',
        large: bg21,
        name: 'bg21',
        src: sbg21,
      },
      {
        label: 'Threads Multicolor',
        large: bg22,
        name: 'bg22',
        src: sbg22,
      },
      {
        label: 'Abstract',
        large: bg23,
        name: 'bg23',
        src: sbg23,
      },
      {
        label: 'Bifrost Abstract',
        large: bg24,
        name: 'bg24',
        src: sbg24,
      },
    ],
    color: [
      {
        color: 'rgba(255,255,255,1)',
        label: '默认',
        name: 'default',
      },
      {
        color: 'rgba(0,0,0,1)',
        label: '深黑色',
        name: 'black',
      },
      {
        color: 'rgba(113,102,240,1)',
        label: '紫罗兰',
        name: 'violet',
      },
      {
        color: 'rgba(232,74,108,1)',
        label: '樱花粉',
        name: 'pink',
      },
      {
        color: 'rgba(187,27,27,1)',
        label: '玫瑰红',
        name: 'rose',
      },
      {
        color: 'rgba(78,105,253,1)',
        label: '天蓝色',
        name: 'sky-blue',
      },
      {
        color: 'rgba(9,96,190,1)',
        label: '深蓝色',
        name: 'deep-blue',
      },
      {
        color: 'rgba(11,208,146,1)',
        label: '浅绿色',
        name: 'green',
      },
      {
        color: 'rgba(13,148,150,1)',
        label: '深绿色',
        name: 'deep-green',
      },
      {
        color: 'rgba(193,66,11,1)',
        label: '橙黄色',
        name: 'orange',
      },
      {
        color: 'rgba(239,189,72,1)',
        label: '柠檬黄',
        name: 'yellow',
      },
      {
        color: 'rgba(63,63,70,1)',
        label: '锌色灰',
        name: 'zinc',
      },
      {
        color: 'rgba(64,64,64,1)',
        label: '中性色',
        name: 'neutral',
      },
      {
        color: 'rgba(52,66,86,1)',
        label: '石板灰',
        name: 'slate',
      },
      {
        color: 'rgba(56,66,82,1)',
        label: '中灰色',
        name: 'gray',
      },
    ],
    float: [
      {
        icon: `mdi:format-float-left`,
        label: '图标左侧',
        name: 'left',
      },
      {
        icon: `mdi:format-float-right`,
        label: '图标右侧',
        name: 'right',
      },
    ],
    fonts: [
      {
        label: '苹方字体1',
        name: 'pingfang-sc',
      },
      {
        label: '苹方字体2',
        name: 'pingfang',
      },
      {
        label: '鸿蒙字体',
        name: 'harmony',
      },
      {
        label: '思源字体',
        name: 'hansans',
      },
      {
        label: '阿里普惠体',
        name: 'alipuhui',
      },
    ],
  },
  terminal: {
    baseTheme: {
      background: '#000',
      black: '#1E1E1D',
      blue: '#5D5DD3',
      brightBlack: '#262625',
      brightBlue: '#7279FF',
      brightCyan: '#72F0FF',
      brightGreen: '#72FF72',
      brightMagenta: '#E572FF',
      brightRed: '#FF7272',
      brightWhite: '#FFFFFF',
      brightYellow: '#FFFF72',
      cyan: '#5DA5D5',
      foreground: '#F8F8F8',
      green: '#5BCC5B',
      magenta: '#BC5ED1',
      red: '#CE5C5C',
      selection: '#5DA5D533',
      white: '#F8F8F8',
      yellow: '#CCCC5B',
    },
    otherTheme: {
      background: '#282a36',
      black: '#282a36',
      blue: '#57c7ff',
      brightBlack: '#686868',
      brightBlue: '#57c7ff',
      brightCyan: '#9aedfe',
      brightGreen: '#5af78e',
      brightMagenta: '#ff6ac1',
      brightRed: '#ff5c57',
      brightWhite: '#eff0eb',
      brightYellow: '#f3f99d',
      cyan: '#9aedfe',
      foreground: '#eff0eb',
      green: '#5af78e',
      magenta: '#ff6ac1',
      red: '#ff5c57',
      selection: '#97979b33',
      white: '#f1f1f0',
      yellow: '#f3f99d',
    },
  },
  version: 10_000,
};
